﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManyToManyEntityFramework.Model
{
    public class Student
    {
        [Key]
        public int StudentId { get; set; }
        [Display(Name = "Student Name")]
        [Required]
        public string Name { get; set; }
        public Grade Grade { get; set; }

        public virtual List<Students_Courses> Students_Courses { get; set; }
    }

    public enum Grade
    {
        Freshman,
        Sophomore,
        Junior,
        Senior,
        Graduate,
        Masters,
        Doctorate
    }
}